Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add resize_, resize_as_, rot90, repeat_interleave, combinations, diag_embed #8036

Merged
merged 13 commits into from
Sep 24, 2024

Conversation

ManfeiBai
Copy link
Collaborator

@ManfeiBai ManfeiBai commented Sep 17, 2024

add resize_, resize_as_, rot90, repeat_interleave, combinations, diag_embed

  • implement @op(torch.Tensor.resize_) rather than @op(torch.ops.aten.resize_) to skip common_methods_invocations.py's force code
  • skip rot90 with k%4==0 due to no change
  • aten.repeat_interleave.Tensor did different thing like torch.repeat_interleave(link), its logic is only accept one argument repeats and generate one new array for repeat_interleave use:
>>> import torch
>>> repeats = torch.tensor([2, 3, 1])
>>> torch.repeat_interleave(repeats)
tensor([0, 0, 1, 1, 1, 2])

@ManfeiBai ManfeiBai changed the title add resize_as_ add resize_, and resize_as_ Sep 23, 2024
@ManfeiBai ManfeiBai changed the title add resize_, and resize_as_ add resize_, resize_as_, rot90 Sep 23, 2024
@ManfeiBai ManfeiBai marked this pull request as ready for review September 24, 2024 20:36
@ManfeiBai ManfeiBai changed the title add resize_, resize_as_, rot90 add resize_, resize_as_, rot90, repeat_interleave Sep 24, 2024
@ManfeiBai ManfeiBai changed the title add resize_, resize_as_, rot90, repeat_interleave add resize_, resize_as_, rot90, repeat_interleave, ceil Sep 24, 2024
@ManfeiBai ManfeiBai changed the title add resize_, resize_as_, rot90, repeat_interleave, ceil add resize_, resize_as_, rot90, repeat_interleave Sep 24, 2024
@ManfeiBai ManfeiBai changed the title add resize_, resize_as_, rot90, repeat_interleave add resize_, resize_as_, rot90, repeat_interleave, combinations, diag_embed Sep 24, 2024
@qihqi qihqi merged commit 47d231f into master Sep 24, 2024
3 checks passed
@qihqi qihqi deleted the ManfeiBai-patch-348118 branch September 24, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants